package IO流;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

public class Dir7 {
    public static void main(String[] args) {
        File file =new File("my.txt");
        FileInputStream fis=null;
        try {
             fis =new FileInputStream(file);
             byte[] buf= fis.readAllBytes();
             System.out.println(new String(buf));
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        } finally {
            try {
                fis.close();
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
    }
}
